package com.gzx.risk.core.apis.result.xinyisou;

import java.util.Map;

import com.gzx.risk.core.apis.result.RiskResult;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class XinyisouScore95 extends RiskResult {
	private Integer code;
	private String msg;
	
	private Map<String, Object> bizData;

	public Double getScore() {
		if (bizData != null && bizData.containsKey("score")) {
			return Double.valueOf(bizData.get("score").toString());
		} else {
			return -1.0;
		}
	}
}
